home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / AMReminder / CAdd.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  2.3 KB  |  86 lines  |  [TEXT/CWIE]

  1. // CAdd.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. #include "DReminder.h"
  8.  
  9. class LStream;
  10.  
  11. class LPushButton;
  12. class LPictureControl;
  13. class LStaticText;
  14. class LClock;
  15. class LEditText;
  16. class LCheckBox;
  17. class LPopupButton;
  18.  
  19.  
  20. //----------
  21. class CAdd : public LGADialog {
  22. public:    // these comprise the programming interface for using the dialog
  23.     static    CAdd*        CreateAdd        (LCommander*    inSuperCommander,
  24.                                                  CommandT        inCommand,
  25.                                                  DReminder*        inData);
  26.     virtual void        SetFromData        (DReminder*        inData);
  27.     virtual DReminder*        GetData ();
  28.  
  29. // these functions will be obsoleted
  30. // retained only for backwards compatibility
  31.     // virtual Ptr        GetDate2FieldDate ();
  32.     // virtual void        SetDate2FieldDate        (Date        inText);
  33.     // virtual Ptr        GetTime2FieldDate ();
  34.     // virtual void        SetTime2FieldDate        (Date        inText);
  35.     virtual void        GetMessage2FieldString        (Str255        str);
  36.     virtual void        SetMessage2FieldString        (ConstStr255Param        str);
  37.     virtual Boolean        GetDisplayIconChoice();
  38.     virtual void        SetDisplayIconChoice        (Boolean    inChoice);
  39.     virtual Boolean        GetDisplayAlertChoice();
  40.     virtual void        SetDisplayAlertChoice        (Boolean    inChoice);
  41.     virtual Boolean        GetPlaySoundChoice();
  42.     virtual void        SetPlaySoundChoice        (Boolean    inChoice);
  43.     virtual short        GetSoundPopupPopupChoice();
  44.     virtual void        SetSoundPopupPopupChoice        (short        choice);
  45.  
  46.  
  47. public:    // these comprise the implementation
  48.     enum { class_ID = 'Add ' };
  49.  
  50.                         CAdd        (LStream*    inStream);
  51.     virtual                ~CAdd();
  52.  
  53.     virtual void        ListenToMessage        (MessageT    inMessage,
  54.                                              void        *ioParam);
  55.  
  56.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  57.                                              void        *ioParam = nil);
  58.     virtual void        FindCommandStatus    (CommandT    inCommand,
  59.                                              Boolean    &outEnabled,
  60.                                              Boolean    &outUsesMark,
  61.                                              Char16        &outMark,
  62.                                              Str255        outName);
  63.  
  64. protected:
  65.     static    void        RegisterClass();
  66.     virtual void        FinishCreateSelf();
  67.     virtual void        DataChanged        (long        inDataID);
  68.  
  69. protected:
  70.     static Boolean        sIsRegistered;
  71.     CommandT            mCommand;
  72.  
  73.     LPushButton*        mOKButton;
  74.     LPushButton*        mCancelButton;
  75.     LClock*        mDate2Field;
  76.     LClock*        mTime2Field;
  77.     LEditText*        mMessage2Field;
  78.     LCheckBox*        mDisplayIconCheck;
  79.     LCheckBox*        mDisplayAlertCheck;
  80.     LCheckBox*        mPlaySoundCheck;
  81.     LPopupButton*        mSoundPopupPopup;
  82.  
  83.     DReminder*        mData;
  84.  
  85. };
  86.